import 'babel-polyfill'
import Vue from 'vue'
import App from './App'
import GMessage from '@/components/common/g-message'
import GNotification from '@/components/common/g-notification'
import GMessageBox from '@/components/common/g-message-box'

Vue.config.productionTip = false;

Vue.prototype.$message = GMessage;
/**
 * 使用方式：
 * 1. this.$message( 'msg' )
 * 2. this.$message( { type: 'info', message: 'msg', duration: 3000 } )    // type: info success error warning
 * 3. this.$message.info( 'msg' ) 或 this.$message.error( 'msg' )    // 还有 .success .warning
 */

Vue.prototype.$notify = GNotification;
// 使用方式和message类似

Vue.prototype.$alert = GMessageBox.alert;

Vue.prototype.$confirm = GMessageBox.confirm;


new Vue( {
    el: '#app',
    data: {},
    render: h => h( App )
} )
